#include "user_extern.h"

//0-select; 1-act
static uint8_t page = 0;
static uint8_t selidx = 0;

/****************************************
 *  名称： system_digimon_show_time
 *  功能： digimon 显示时间界面
 *  参数： 
 *  返回值：DIGI_VOID
 ****************************************/
uint8_t digi06_sleep_display(void)
{
    uint8_t win_ret = WINDOWS_STATUS_DIS_ONLY;
    if (page == 0)
    {
        system_digimon_ligth_select(selidx);
    }
    else if (page == 1)
    {
        int system_digimon_ligth_act(selidx);
    }
    return win_ret;
}

uint8_t digi06_sleep_btn_select(void *arg)
{
    selidx++;
    if (selidx > 1)
    {
        selidx = 0;
    }
    return WINDOWS_STATUS_DIS_ONLY;
}

uint8_t digi06_sleep_btn_enter(void *arg)
{
    page++;
    if (page > 1)
    {
        page = 0;
    }
    return WINDOWS_STATUS_DIS_ONLY;
}

uint8_t digi06_sleep_btn_exit(void *arg)
{
    page = 0;
    Dsystem.windows_cur_id = WIN_UI_DIGIMON;
    return WINDOWS_STATUS_INIT;
}